package com.stylefeng.guns.modular.poemspoetry.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;

/**
 * <p>
 * 唐诗作者
 * </p>
 *
 * @author stylefeng123
 * @since 2018-03-20
 */
@TableName("poems_author")
public class PoemsAuthor extends Model<PoemsAuthor> {

    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 作者名称
     */
    private String name;
    /**
     * 作者简介
     */
    @TableField("intro_l")
    private String introL;
    /**
     * 作者简介
     */
    @TableField("intro_s")
    private String introS;
    /**
     * 作者所属朝代（T-唐代,S-宋代）
     */
    private String dynasty;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getIntroL() {
        return introL;
    }

    public void setIntroL(String introL) {
        this.introL = introL;
    }

    public String getIntroS() {
        return introS;
    }

    public void setIntroS(String introS) {
        this.introS = introS;
    }

    public String getDynasty() {
        return dynasty;
    }

    public void setDynasty(String dynasty) {
        this.dynasty = dynasty;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "PoemsAuthor{" +
        "id=" + id +
        ", name=" + name +
        ", introL=" + introL +
        ", introS=" + introS +
        ", dynasty=" + dynasty +
        "}";
    }
}
